Check into using DirectSound. I think this can do what you want.
Check into using DirectSound. I think this can do what you want.
DirectSound uses the same Win32 structures used with waveOut* functions ( WAVEFORMATEX,...) so it doesn't support MP3Originally Posted by bithub
Perhaps i can load the MP3 file in memory,then convert it to WAV format before reproduction,using DirectShow or other APIs and then play it
Can DirectShow convert MP3 -> WAV ?
Tronic,did you use those unknown APIs to convert the MP3s to WAV before sending them to OpenAL for reproduction?
Try to remember their name
Perhaps this tutorial can be of some help?
DirectShow tutorial
Part II should be able to play MP3
Found it!!
This is a Win32 function for converting from an MP3 stream to a WAV audio buffer,that can be used for reproduction with waveOut* (which can also reproduce several tracks together)
http://64.233.183.104/search?q=cache...EGLAYER3&hl=it
DirectShow is no longer necessary